package com.uniview.exception;



/**
 * @Author lux
 * @date: 2019/11/26
 * @desc: 自定义异常
 */
public class CommonException extends RuntimeException {

    private String errorCode;
    private String errorMsg;

    public CommonException(String errorCode, String errorMsg) {
        super(errorMsg);
        this.errorCode = errorCode;
        this.errorMsg =  errorMsg;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}
